package com.yeban.javase.day04.test02;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/12
 */
public class Test {

    public static void main(String[] args) {

        Employee e = new Employee("张三","无锡","101231",4000,1);
        Manager m = new Manager("王经理","无锡","100030",10000,5,"总经理");

        System.out.println("员工信息：\n" + e);
        System.out.println("经理信息：\n" + m);

        System.out.println("---------- 涨薪前 ----------");
        System.out.println("员工的工资为：" + e.getWage());
        System.out.println("经理的工资为：" + m.getWage());

        // 涨薪
        e.addWage();
        m.addWage();

        System.out.println("\n---------- 涨薪后 ----------");
        System.out.println("员工的工资为：" + e.getWage());
        System.out.println("经理的工资为：" + m.getWage());
    }
}
